"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var fs = require("fs");
var path = require("path");
var mysql_1 = require("./mysql");
var MyCrypto_1 = require("./MyCrypto");
exports.default = {
    mysql: mysql_1.default, MyCrypto: MyCrypto_1.default
};
function pathResolve(_path) {
    return path.resolve(_path);
}
exports.pathResolve = pathResolve;
function markPathSplit(pathName) {
    return pathName.split(path.sep);
}
exports.markPathSplit = markPathSplit;
function isExist(path) {
    return fs.existsSync(path);
}
exports.isExist = isExist;
/**
 * example:
 * pathName: './test1/test2'
 * return : ['test1','test1/test2']
 * */
function pathSplit(_path) {
    _path = pathResolve(_path);
    var p = markPathSplit(_path);
    for (var i = 1, length_1 = p.length; i < length_1; i++) {
        p[i] = p[(i - 1)] + path.sep + p[i];
    }
    return p;
}
exports.pathSplit = pathSplit;
